Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method attribute for PHP 8.1 compatibility #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emteknetnz
Copy link

This fixes the following deprecation warning when running PHP 8.1

Deprecated: Return type of Apache_Solr_Document::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vendor/ptcinc/solr-php-client/Apache/Solr/Document.php on line 301

You can read about this specific attribute here https://php.watch/versions/8.1/ReturnTypeWillChange

Could you please tag v1.0.1 once this is merged. Thanks.

@emteknetnz
Copy link
Author

@djimenez @cwatsonptc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants